import { createClient } from '@supabase/supabase-js'

const supabaseUrl = 'https://ndbylzabcrwxucdrrgiq.supabase.co'
const supabaseKey =
  'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im5kYnlsemFiY3J3eHVjZHJyZ2lxIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NjIzMjIzMzIsImV4cCI6MjA3Nzg5ODMzMn0.FbM_kJBFfEFWe7FbUj0qcnqe-BHAYEh2MQlVI6maeRE'
const supabase = createClient(supabaseUrl, supabaseKey)

export const lcPageTable = supabase.from('lc_pages')
export interface LcPageTableType {
  id?: string
  createTime?: string
  name?: string
  title?: string
  version?: string
  status?: number
  route?: string
  layoutType?: string
  metaInfo?: string
  updateTime?: string
  fileUrl?: string
}

export default supabase
